package com.interauto.bean.httpinfo;

import java.util.Map;

/**
 * http响应的结果体
 */
public class HttpResPonseBean {
    /**
     * 具体响应值
     */
    private Integer rescode;
    /**
     * 响应header
     */
    private Map<String,String> resheader;
    /**
     * 响应cookie
     */
    private Map<String,String> rescookie;

    /**
     * 响应的结果类型，1=json,2=xml,3=html
     */
    private Integer restype;

    /**
     * 响应的具体内容
     */
    private String resinfo;


    public Integer getRescode() {
        return rescode;
    }

    public void setRescode(Integer rescode) {
        this.rescode = rescode;
    }

    public Map<String, String> getResheader() {
        return resheader;
    }

    public void setResheader(Map<String, String> resheader) {
        this.resheader = resheader;
    }

    public Map<String, String> getRescookie() {
        return rescookie;
    }

    public void setRescookie(Map<String, String> rescookie) {
        this.rescookie = rescookie;
    }

    public Integer getRestype() {
        return restype;
    }

    public void setRestype(Integer restype) {
        this.restype = restype;
    }

    public String getResinfo() {
        return resinfo;
    }

    public void setResinfo(String resinfo) {
        this.resinfo = resinfo;
    }

    @Override
    public String toString() {
        return "HttpResPonseBean{" +
                "rescode=" + rescode +
                ", resheader=" + resheader +
                ", rescookie=" + rescookie +
                ", restype=" + restype +
                ", resinfo='" + resinfo + '\'' +
                '}';
    }
}
